package com.ruoyi.system.domain.tree;

import com.ruoyi.common.core.domain.entity.SysDept;
import lombok.Data;

import java.util.List;

/**
 * @author tzx
 */
@Data
public class TreeNode {
    /**
     * 节点ID
     */
    private Long deptId;
    /**
     * 节点ID
     */
    private Long value;

    /**
     * 父节点ID：顶级节点为0
     */
    private Long parentId;

    /**
     * 节点名称
     */
    private String label;

    /**
     * 节点名称
     */
    private SysDept sysDept;

    /**
     * 子节点
     */
    private List<TreeNode> children;

    /**
     * 节点名称
     */
    private Integer isDisposition;

    /**
     * 数量
     */
    private Integer number;

    public TreeNode(Long deptId, Long value, Long parentId, String label, SysDept sysDept, Integer number) {
        this.deptId = deptId;
        this.value = value;
        this.parentId = parentId;
        this.label = label;
        this.sysDept = sysDept;
        this.number = number;
    }
}
